import { get, post } from '@/libs/axios'

const agency = {
    // 分页列表
    page(queryData) {
        return get('/agency/page', queryData)
    },
    // 单条信息
    info(id) {
        return get('/agency/info', { id: id })
    },
    // 保存
    save(formData) {
        return post('/agency/save', formData)
    },
    // 状态
    status(id, status) {
        return post('/agency/status', { 'id': id, 'status': status })
    },
    // 删除
    del(id) {
        return post('/agency/delete', { id: id })
    },
    //修改密码
    editpwd(formData) {
        return post('/agency/editpwd', formData)
    },
    //获取经纬度
    getaddress(formData) {
        return post('/agency/address', formData)
    },
    //收益信息
    earningsPage(queryData) {
        return get('/agency/earnings', queryData)
    },
    //添加收益信息
    earningsAdd(queryData) {
        return get('/agency/addEarnings', queryData)
    },
    //群主商品
    agencyGoodsPage(queryData) {
        return get('/agency/agencygoods', queryData)
    },
    orderInfo(id) {
        return get('/agency/orderInfo', { id: id })
    },
    //群主进货单
    agencyOrderPage(queryData) {
        return get('/agency/orderPage', queryData)
    },
    //群主进货单设置处理
    agencyOrderStatus(queryData) {
        return post('/agency/orderStatus', queryData)
    },
    //群主提现申请列表
    agencyExtractPage(queryData) {
        return get('/agency/agencyExtractPage', queryData)
    },
    //审核群主提现申请
    agencyExtractInfo(id) {
        return get('/agency/agencyExtractInfo', { id: id })
    },
    //审核群主提现申请
    agencyExtractStatus(queryData) {
        return post('/agency/agencyExtractStatus', queryData)
    },
    //群主提现记录添加
    agencyExtractSave(queryData) {
        return post('/agency/agencyExtractSave', queryData)
    }
}

export default agency
